Other pragmas?

Are there any other pragmas besides runlim and stack? If so, where can I find what pragmas exist and what they do?

Thanks,
Marjorie
mtmccor - Mon Apr 12 11:54:59 EDT 2010

Re: Other pragmas?
Mathias Mamsch - Mon Apr 12 12:23:41 EDT 2010

there are two more I know of:

<func> pragma perm <addess>
<func> pragmafn perm <addess>

where func seems to be a DXL function declaration and address seems to be the memory address of the function. They seem to be used for installing the "built-in" perms, but I have no promising use for them yet but my hope is to use them someday to change the built in behaviour of DOORS replacing its internal perms :-)

I know no documentation about the pragmas except for the DXL help.

Regards, Mathias

Re: Other pragmas?
llandale - Mon Apr 12 15:30:24 EDT 2010

Found these: date, stack, print, splashMessage, runLim, perm, permfn. My old notes say that 'encoding' is one:
pragma encoding,"UTF-8", but it doesn't appear to exist in v9.

'date' may perhaps set the default date format, but I had no luck with this:
pragma date, "MMMM dd, yyyy"

I did find this interesting though:

string Format
print "Long Formats...\n"
for Format in longDateFormats() do
   print "\t" Format "\n"
print "Short Formats...\n"
for Format in shortDateFormats() do
  print "\t" Format "\n"


'splashMessage' is used when DOORS is loading.

'stack' default is 4096.

'runLim' default is 1000000

Not much help, oh well.

 

 

  • Louie